<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MT6573台开发分支下配置多个项目的规范说明_mi - chr8880的专栏 - 博客频道 - CSDN.NET</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="MT6573台开发分支下配置多个项目的规范说明_mihttp://xzlx.s227.cnaaa1.com/forum.php?mod=viewthread&amp;tid=182&amp;fromuid=43关于MTK6573平台开发分支下配置多个项目的规范说明1.涉及的目录结构：共计7处，尤其第四处非常容易遗漏，请特别小心。1.1)build/target/product/$(pr" />
<script src="http://static.blog.csdn.net/scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/ad.js?v=1.1"></script>
<link rel="Stylesheet" type="text/css" href="http://static.blog.csdn.net/skin/default/css/style.css?v=1.1" />
<link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="/chr8880/rss/list" />
<link rel="shortcut icon" href="/favicon.ico" />
<link type="text/css" rel="stylesheet" href="http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/default.css" />
</head>
<body>
<script src="http://csdnimg.cn/pubnav/js/pub_topnav_2011.js"type="text/javascript"></script>

<div id="container">
<div id="header">
    <div class="header">
        <div id="blog_title">
            <h1><a href="/chr8880">chr8880的专栏</a></h1>
            <h2></h2>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg"></div>
    <div class="navigator">
        <ul>
            <li id="btnContents"><a href="/chr8880?viewmode=contents"><span><img src="http://static.blog.csdn.net/images/ico_list.gif">目录视图</span></a></li>
            <li id="btnView"><a href="/chr8880?viewmode=list"><span><img src="http://static.blog.csdn.net/images/ico_summary.gif">摘要视图</span></a></li>
            <li id="btnRss"><a href="/chr8880/rss/list"><span><img src="http://static.blog.csdn.net/images/ico_rss.gif">订阅</span></a></li>
</ul>
    </div>
</div>
<script type="text/javascript">
    var username = "chr8880";
    var _blogger = username;
    var blog_address = "http://blog.csdn.net/chr8880";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "hutianxi1129";
</script>

<div id="body">
<div id="main">
<div class="main">
<div class="notice"> 

<a href="http://surveies.csdn.net/survey/comein/590" target="_blank">
<font color=red>CSDN博客第三方发布工具有奖调查
   </font></a>



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://www.csdn.net/article/2013-06-26/2815989" target="_blank"><font color=blue>专访成晓旭：云计算催生行业信息化新格局
</font></a>

&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/binbinhong/article/details/9207297
"target="_blank">
<font color=red>感知计算：开发人员的十大资源 


 </font></a>

&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/blogdevteam/article/details/9136613"target="_blank">
<font color=red>CSDN博客第二期云计算最佳博主评选

 </font></a>


&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/blogdevteam/article/details/9126517"target="_blank">
<font color=blue>2013年10月微软MVP申请开始
 </font></a>




</div>
<div id="article_details" class="details">
    <div class="article_title">
    <span class="ico ico_type_Repost"></span>
    <h3>
        <span class="link_title"><a href="/chr8880/article/details/7990198">
        MT6573台开发分支下配置多个项目的规范说明_mi
        </a></span>
    </h3>
</div>

        
    <div class="article_manage">
        <span class="link_categories">
        分类：
            <a href="/chr8880/article/category/1196802">其它</a> 
        </span>
    <span class="link_postdate">2012-09-18 08:43</span>
    <span class="link_view" title="阅读次数">714人阅读</span>
    <span class="link_comments" title="评论次数"><a href="#comments">评论</a>(0)</span>
    <span class="link_collect"><a href="javascript:void(0);" onclick="javascript:collectArticle('MT6573台开发分支下配置多个项目的规范说明_mi','7990198');return false;" title="收藏">收藏</a></span>
    <span class="link_report"><a href="#report"  onclick="javascript:report(7990198,2);return false;" title="举报">举报</a></span>
    
</div>
<div class="tag2box"><a href='http://blog.csdn.net/tag/details.html?tag=mtk' target=_blank>mtk</a><a href='http://blog.csdn.net/tag/details.html?tag=makefile' target=_blank>makefile</a><a href='http://blog.csdn.net/tag/details.html?tag=frameworks' target=_blank>frameworks</a><a href='http://blog.csdn.net/tag/details.html?tag=path' target=_blank>path</a><a href='http://blog.csdn.net/tag/details.html?tag=java' target=_blank>java</a><a href='http://blog.csdn.net/tag/details.html?tag=module' target=_blank>module</a></div>


    
<div id="article_content" class="article_content">

<p>MT6573台开发分支下配置多个项目的规范说明_mi<br>
http://xzlx.s227.cnaaa1.com/forum.php?mod=viewthread&amp;tid=182&amp;fromuid=43<br>
<br>
<br>
</p>
<p>关于MTK6573平台开发分支下配置多个<strong><span style="color:#FF0000">项目</span></strong>的规范说明</p>
1.涉及的目录结构：共计7处，尤其第四处非常容易遗漏，请特别小心。<br>
1.1)build/target/product/$(project_name).mk<br>
1.2)mediatek/config/$(project_name)<br>
1.3)mediatek/custom/$(project_name)<br>
1.4)mediatek/custom/$(project_name)/uboot/inc/configs/$(project_name).h ／／这里特别注意，容易遗漏的点<br>
1.5)vendor/mediatek/$(project_name)<br>
1.6)vendor/mediatek/$(project_name)/artifacts/out/target/product/$(project_name)<br>
1.7)MI/$(project_name)<br>
其中$(project_name)均为新增的项目。如mi等。<br>
2.LINK或者COPY原则(涉及以上第一点的目录结构增加对于内容的，请遵循2个凡是)<br>
凡是2个项目一致的内容使用link. 凡是2个项目不一致的内容使用copy。<br>
建议操作：<br>
使用MI/tools/工具箱下提供的lns脚步，对新增的每个文件均采用单独link的模式，<br>
如果遇到因为项目不同而需要单独区分的情况，请取消link为copy文件接口。<br>
copy的情况下请特别注意，升级补丁需要照顾到多个项目。<br>
&nbsp;&nbsp;<br>
3.其他一些需要配置多项目的内容涉及到的修改点<br>
3.1 项目的宏定义文件，包含makefile，cpp，h，java（没有宏，使用静态class的形式）<br>
makefile，cpp，h中的宏定义处<br>
mediatek/config/$(project_name)/ProjectConfig.mk中<br>
AUTO_ADD_GLOBAL_DEFINE_BY_NAME<br>
AUTO_ADD_GLOBAL_DEFINE_BY_VALUE<br>
AUTO_ADD_GLOBAL_DEFINE_BY_NAME_VALUE<br>
在以上三个变量中增加对于的宏定义，分别代表宏是否定义，以及宏定义是否带有字符串&#20540;；定义<br>
在##MI Support##<br>
之后增加的譬如MTK_PRO_PROJECT_MI= yes主要使用makefile文件中，这里会有一个脚本来处理，<br>
简单的说，就是临时export到环境变量中去，让所有的makefile文件不需要include就可以使用。<br>
java代码区分静态的增加；<br>
MI/$(project_name)/frameworks/featureoption/java/com/MI/MIfeatureoption/MIFeatureOption.java<br>
这个会编译到frameworks中，当作全局变量供平台使用，用来在java代码中区分。<br>
简单的说：<br>
C代码中：MTK_PRO_PROJECT_MI_3 / MTK_PRO_PROJECT_MI_4.<br>
JAVA代码中：由于JAVA中无法使用宏，大家可使用 MIFeatureOption.java 中定义的：MTK_PRO_PRODUCT_NAME_STR 字符串来区分。
<br>
3.2----如果需要区分多项目的APN文件以及AGPS文件还需要修改以下2处<br>
首先需要在vendor/mediatek/etc增加多个项目的目录配置<br>
其次需要build/target/product/$(project_name).mk中修改<br>
原先的<br>
PRODUCT_COPY_FILES &#43;= vendor/mediatek/etc/apns-conf.xml:system/etc/apns-conf.xml<br>
PRODUCT_COPY_FILES &#43;= vendor/mediatek/etc/spn-conf.xml:system/etc/spn-conf.xml \<br>
ifeq ($(MTK_AGPS_APP),yes)<br>
PRODUCT_COPY_FILES &#43;= vendor/mediatek/etc/agps_profiles_conf.xml:system/etc/agps_profiles_conf.xml<br>
endif<br>
修改为<br>
PRODUCT_COPY_FILES &#43;= vendor/mediatek/etc/$(MTK_PROJECT)/apns-conf.xml:system/etc/apns-conf.xml<br>
PRODUCT_COPY_FILES &#43;= vendor/mediatek/etc/$(MTK_PROJECT)/spn-conf.xml:system/etc/spn-conf.xml \<br>
ifeq ($(MTK_AGPS_APP),yes)<br>
PRODUCT_COPY_FILES &#43;= vendor/mediatek/etc/$(MTK_PROJECT)/agps_profiles_conf.xml:system/etc/agps_profiles_conf.xml<br>
endif<br>
3.3 多项目蓝牙名称修改点，通过宏控制的形式来区分不同项目的蓝牙名称<br>
frameworks/base/core/jni/android_bluetooth_common.h<br>
具体修改为#define BTMTK_ANDROID_DEFAULT_LOCAL_NAME &quot;ANDROID BT&quot;配置为多个项目的。<br>
3.4 多项目的USB名称修改点，通过宏控制的形式来区分不同项目的USB名称<br>
mediatek/custom/mt6573/kernel/usb/src/mtk_usb_custom.h<br>
具体修改为<br>
#define VENDOR_ID&nbsp; &nbsp;&nbsp; &nbsp;0x2006 /*MI&nbsp;&nbsp;USB vendor id&nbsp;&nbsp;*/<br>
#define MANUFACTURER_STRING &quot;MI&quot;<br>
#define PRODUCT_STRING&nbsp; &nbsp;&nbsp; &nbsp;&quot;MI&quot;<br>
#define USB_ETH_VENDORID&nbsp; &nbsp;&nbsp;&nbsp;0<br>
#define USB_ETH_VENDORDESCR&nbsp;&nbsp;&quot;MI&quot;<br>
#define USB_MS_VENDOR&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&quot;MI&quot;<br>
#define USB_MS_PRODUCT&nbsp; &nbsp;&nbsp; &nbsp; &quot;MI MS&quot;<br>
3.5多项目的factory mode名称修改点，通过宏控制的形式来区分不同项目的USB名称<br>
mediatek\source\factory\src\factory.c<br>
具体修改为<br>
print_verinfo(info, &amp;len,&nbsp;&nbsp;&quot;SW Ver.&nbsp; &nbsp;&nbsp;&nbsp;&quot;, val);<br>
3.6 多项目配置的uboot启动页面修改<br>
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>
首先需要增加目录<br>
mediatek/custom/common/uboot/logo/$(project_name)<br>
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>
mediatek/source/external/boot_logo_updater/Android.mk中的修改点<br>
原先的<br>
LOCAL_SRC_FILES := custom/$(LOCAL_MODULE)<br>
修改之后的<br>
LOCAL_SRC_FILES := custom/$(MTK_PROJECT)/$(LOCAL_MODULE)<br>
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>
mediatek/build/android/permfix.sh中修改点<br>
原先的<br>
mediatek/custom/common/uboot/logo/update<br>
mediatek/custom/common/uboot/logo/tool/*<br>
mediatek/custom/common/uboot/logo/boot_logo<br>
修改之后的<br>
mediatek/custom/common/uboot/logo/${MTK_PROJECT}/update<br>
mediatek/custom/common/uboot/logo/${MTK_PROJECT}/tool/*<br>
mediatek/custom/common/uboot/logo/${MTK_PROJECT}/boot_logo<br>
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>
bootable/bootloader/uboot/build.sh中修改点<br>
原先的：<br>
UBOOT_LOGO_PATH=&quot;${CUR_DIR}/${MTK_PATH_CUSTOM}/logo&quot;<br>
修改为：<br>
UBOOT_LOGO_PATH=&quot;${CUR_DIR}/${MTK_PATH_CUSTOM}/logo/${MTK_PROJECT}&quot;<br>
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>
3.7 多项目的型号，版本，以及第三方APK等信息的配置，均集中在MI目录下对应的工程目录<br>
MI/$(project_name)/config/ProjectConfig.mk中的<br>
PRODUCT_PACKAGE_OVERLAYS多项目不同资源的配置<br>
MTK_PRO_DISPLAY_ID 版本号<br>
MTK_PRO_PRODUCT_MODEL 型号<br>
PRODUCT_LOCALES 语言分辨率<br>
$(call inherit-product, vendor/google/products/gms.mk google服务以及市场等<br>
PRODUCT_PACKAGES 自开发源码的apk应用<br>
注意：project_name为项目编译输入名称，如mi等。<br>

</div>

<div class="share_buttons" id="sharePanel"></div>
<!--192.168.100.33-->
<div class="article_next_prev">
    <li class="prev_article"><span>上一篇：</span><a href="/chr8880/article/details/7982107">android学习网站收藏（持续添加）</a></li>
    <li class="next_article"><span>下一篇：</span><a href="/chr8880/article/details/7990592">android 获取联系人代码样例</a></li>
</div>


    
</div>
<div id="ad_cen">
<script type="text/javascript" >BAIDU_CLB_SLOT_ID = "117306";</script>
<script type="text/javascript" src="http://cbjs.baidu.com/js/o.js"></script>
</div>
<script type="text/javascript">
    //new Ad(4, 'ad_cen');
</script>
<div id="comment_title" class="panel_head">查看评论<a name="comments"></a></div>
<div id="comment_list"></div>
<div id="comment_bar"></div>
<div id="comment_form"></div>
<div class="announce">* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
<script type="text/javascript">
    var fileName = '7990198';
    var commentscount = 0;
    var islock = false
</script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/comment.js"></script>
<div id="ad_bot"></div>
<script type="text/javascript">
    new Ad(5, 'ad_bot');
</script>
<div id="report_dialog"></div>

<div id="d-top" style="display:none;">
<a id="d-top-a" href="#" title="回到顶部">
<img src="http://static.blog.csdn.net/images/top.png" alt="TOP" /></a>
</div>
<script type="text/javascript">
    $(function(){
        var d_top=$('#d-top');
        document.onscroll=function(){
            var scrTop=(document.body.scrollTop||document.documentElement.scrollTop);
            if(scrTop>500){
                d_top.show();
            }else{
                d_top.hide();
            }
        }
        $('#d-top-a').click(function(){
            scrollTo(0,0);
            this.blur();
            return false;
        });
    });
</script>

<div class="clear"></div>
</div>
</div>

<div id="side">
<div class="side">
<div id="panel_Profile" class="panel">
<ul class="panel_head"><span>个人资料</span></ul>
<ul class="panel_body profile">
<div id="blog_userface">
    <a href="http://my.csdn.net/chr8880" target="_blank">
    <img src="http://avatar.csdn.net/A/A/C/1_chr8880.jpg" title="访问我的空间" style="max-width:90%"/>
    </a>
    <br />
    <span><a href="http://my.csdn.net/chr8880" class="user_name" target="_blank">chr8880</a></span>
</div>
<div class="interact">
<a href="javascript:void(0);" class="attent" id="span_add_follow" title="[加关注]"></a>
<a href="javascript:void(0);" class="letter" onclick="loginto(1)" title="[发私信]"></a>
</div>
<div id="blog_medal">
</div>
<ul id="blog_rank">
    <li>访问：<span>33885次</span></li>
    <li>积分：<span>743分</span></li>
    <li>排名：<span>第15433名</span></li>
</ul>
<ul id="blog_statistics">
    <li>原创：<span>36篇</span></li>
    <li>转载：<span>33篇</span></li>
    <li>译文：<span>0篇</span></li>
    <li>评论：<span>16条</span></li>
</ul>
</ul>
</div>



<div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body">
        <form id="frmSearch" action="http://so.csdn.net/search" class="form_search" target="_blank">
        <span><input id="inputSearch" type="text" class="blogsearch" title="请输入关键字" /></span>
        <input id="btnSubmit" type="submit" value="搜索" title="search in blog" />
        <input type="hidden" name="q" id="inputQ" />
        <input type="hidden" name="t" value="blog" />
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div><div id="panel_Category" class="panel">
<ul class="panel_head"><span>文章分类</span></ul>
<ul class="panel_body">
<li>
<a href="http://blog.csdn.net/chr8880/article/category/1196792">Android代码解析</a><span>(26)</span>
</li>
<li>
<a href="http://blog.csdn.net/chr8880/article/category/1196790">Android环境及编译</a><span>(8)</span>
</li>
<li>
<a href="http://blog.csdn.net/chr8880/article/category/1230208">JAVA各属性集合</a><span>(10)</span>
</li>
<li>
<a href="http://blog.csdn.net/chr8880/article/category/1196791">JAVA开发(eclipse工具使用)</a><span>(10)</span>
</li>
<li>
<a href="http://blog.csdn.net/chr8880/article/category/1245759">电话相关</a><span>(7)</span>
</li>
<li>
<a href="http://blog.csdn.net/chr8880/article/category/1196802">其它</a><span>(10)</span>
</li>
</ul>
</div><div id="panel_Archive" class="panel">
<ul class="panel_head"><span>文章存档</span></ul>
<ul class="panel_body">
<div id="archive_list">
<!--归档统计-->
<li><a href="http://blog.csdn.net/chr8880/article/month/2013/02">2013年02月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/chr8880/article/month/2013/01">2013年01月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/chr8880/article/month/2012/12">2012年12月</a><span>(2)</span></li><li><a href="http://blog.csdn.net/chr8880/article/month/2012/10">2012年10月</a><span>(6)</span></li><li><a href="http://blog.csdn.net/chr8880/article/month/2012/09">2012年09月</a><span>(28)</span></li><li><a href="http://blog.csdn.net/chr8880/article/month/2012/08">2012年08月</a><span>(6)</span></li><li><a href="http://blog.csdn.net/chr8880/article/month/2012/07">2012年07月</a><span>(25)</span></li>
</div>
</ul>
</div>
<div id="hotarticls" class="panel">
<ul class="panel_head"><span>阅读排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="/chr8880/article/details/7788482" title="安卓系统程序文件注释说明以及删除建议（续）">安卓系统程序文件注释说明以及删除建议（续）</a><span>(2371)</span>
</li>
<li>
<a href="/chr8880/article/details/7774553" title="MTK Android 编译小结">MTK Android 编译小结</a><span>(1963)</span>
</li>
<li>
<a href="/chr8880/article/details/7774497" title="开博第一篇">开博第一篇</a><span>(1805)</span>
</li>
<li>
<a href="/chr8880/article/details/7792154" title="Windows系统下搭建Android开发平境">Windows系统下搭建Android开发平境</a><span>(1545)</span>
</li>
<li>
<a href="/chr8880/article/details/8016012" title="拨号时获取双卡状态及飞行模式判断（设置）">拨号时获取双卡状态及飞行模式判断（设置）</a><span>(1523)</span>
</li>
<li>
<a href="/chr8880/article/details/7878511" title="MTK Android 环境搭配">MTK Android 环境搭配</a><span>(1073)</span>
</li>
<li>
<a href="/chr8880/article/details/7792095" title="如何在android模拟器上模拟SD卡">如何在android模拟器上模拟SD卡</a><span>(1069)</span>
</li>
<li>
<a href="/chr8880/article/details/8057444" title="Android 4.0里无法屏蔽HOME键">Android 4.0里无法屏蔽HOME键</a><span>(946)</span>
</li>
<li>
<a href="/chr8880/article/details/7880423" title="MTK android 建立项目拷贝文件（makeMtk）">MTK android 建立项目拷贝文件（makeMtk）</a><span>(908)</span>
</li>
<li>
<a href="/chr8880/article/details/7793868" title="如何将网上下载的apk修改资源后内置到手机">如何将网上下载的apk修改资源后内置到手机</a><span>(870)</span>
</li>
</ul>
</div>
<div id="hotarticls2" class="panel">
<ul class="panel_head"><span>评论排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="/chr8880/article/details/8057444" title="Android 4.0里无法屏蔽HOME键">Android 4.0里无法屏蔽HOME键</a><span>(7)</span>
</li>
<li>
<a href="/chr8880/article/details/8005069" title="MTK Android拨打电话如何获取适时状态">MTK Android拨打电话如何获取适时状态</a><span>(4)</span>
</li>
<li>
<a href="/chr8880/article/details/7787656" title="ubuntu 修改默认 shell">ubuntu 修改默认 shell</a><span>(1)</span>
</li>
<li>
<a href="/chr8880/article/details/7789163" title="请问如何默认打开Android 的root权限，急急急！">请问如何默认打开Android 的root权限，急急急！</a><span>(1)</span>
</li>
<li>
<a href="/chr8880/article/details/8005081" title="MTK Android 如何自动挂断电话">MTK Android 如何自动挂断电话</a><span>(1)</span>
</li>
<li>
<a href="/chr8880/article/details/7886084" title="请教：MTK android 如何定义自己的模块宏">请教：MTK android 如何定义自己的模块宏</a><span>(1)</span>
</li>
<li>
<a href="/chr8880/article/details/8263290" title="ubuntu下 安装和设置 OpenSSH Server">ubuntu下 安装和设置 OpenSSH Server</a><span>(1)</span>
</li>
<li>
<a href="/chr8880/article/details/7945725" title="Android中的Intent">Android中的Intent</a><span>(0)</span>
</li>
<li>
<a href="/chr8880/article/details/7944296" title="android:allowTaskReparenting(clearTaskOnLaunch...)">android:allowTaskReparenting(clearTaskOnLaunch...)</a><span>(0)</span>
</li>
<li>
<a href="/chr8880/article/details/7998735" title="Handler使用总结">Handler使用总结</a><span>(0)</span>
</li>
</ul>
</div>
<div id="homepageArticles" class="panel">
<ul class="panel_head"><span>推荐文章</span></ul>
<ul class="panel_body" id="ad_commend"></ul>
</div>
<script type="text/javascript">
 new Ad(12, 'ad_commend');
</script><div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
    <a href="/chr8880/article/details/8057444#comments">Android 4.0里无法屏蔽HOME键</a>
    <p style="margin:0px;"><a href="/limingxiao117" class="user_name">limingxiao117</a>:
@limingxiao117:另外，在interceptKeyBeforeDispatching(W...
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8057444#comments">Android 4.0里无法屏蔽HOME键</a>
    <p style="margin:0px;"><a href="/limingxiao117" class="user_name">limingxiao117</a>:
先找到文件PhoneWindowManager.java （frameworks\base\poli...
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/7787656#comments">ubuntu 修改默认 shell</a>
    <p style="margin:0px;"><a href="/sunson547" class="user_name">sunson547</a>:
有用 谢谢
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/7886084#comments">请教：MTK android 如何定义自己的模块宏</a>
    <p style="margin:0px;"><a href="/goodtalent" class="user_name">goodtalent</a>:
你如果模块的代码的android.mk里都用宏控制了，那肯定是有效的，不然要宏干什么。
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8057444#comments">Android 4.0里无法屏蔽HOME键</a>
    <p style="margin:0px;"><a href="/android_baoyu" class="user_name">android_baoyu</a>:
@wuxiaotian_2012:亲，我的手机是4.0.5系统的，试过你的方法了，好像没用呢！能说的...
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8005069#comments">MTK Android拨打电话如何获取适时状态</a>
    <p style="margin:0px;"><a href="/chr8880" class="user_name">chr8880</a>:
这个你可能要调用PHONE的线程 ，即在AndroidManifest.xml里&lt;manifest ...
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8005069#comments">MTK Android拨打电话如何获取适时状态</a>
    <p style="margin:0px;"><a href="/anzhu_111" class="user_name">anzhu_111</a>:
@chr8880:楼主，我在自己开发的一个android应用中调用PhoneFactory.getD...
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8057444#comments">Android 4.0里无法屏蔽HOME键</a>
    <p style="margin:0px;"><a href="/wuxiaotian_2012" class="user_name">wuxiaotian_2012</a>:
在2.2,2.3版本上重写下面方法就能重写home键    public void onAttach...
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8005069#comments">MTK Android拨打电话如何获取适时状态</a>
    <p style="margin:0px;"><a href="/chr8880" class="user_name">chr8880</a>:
@anzhu_111:测过的，当时写SOS的时候搞的
    </p>
    </li>
    <li>
    <a href="/chr8880/article/details/8005069#comments">MTK Android拨打电话如何获取适时状态</a>
    <p style="margin:0px;"><a href="/anzhu_111" class="user_name">anzhu_111</a>:
请问楼主亲测过了吗？谢谢！
    </p>
    </li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>

<script type="text/javascript" src="http://static.blog.csdn.net/scripts/newblog.min.js?v=1.1"></script>
<script type="text/javascript" src="http://medal.blog.csdn.net/showblogmedal.ashx?blogid=1323933"></script>

<script type="text/javascript">
document.write('<script type="text/javascript" src="http://csdnimg.cn/pubfooter/js/publib_footer.js?' + Math.floor(new Date()/120000).toString(36) + '="></'+'script>');
</script>

<script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</script>
<script type="text/javascript" src="http://www.csdn.net/ui/scripts/Csdn/counter.js?v=1"></script>


<script type="text/javascript" src="http://ad.csdn.net/scripts/ad-blog.js"></script>

<script type="text/javascript" src="http://zz.csdn.net/js/count.js"></script>

</div>
</body>
</html>